<div class="am-btn-toolbar">
    <?php if(isset($sub_menus)) :foreach($sub_menus as $item):?>
        <?php if($item['is_top']==1):?>
            <div class="am-btn-group am-btn-group-xs">
                <?php if($item['is_windows']==1):?>
                <a class="ajax am-btn am-btn-default am-btn-success am-radius"
                   href="javascript:;"  data-title="<?=$item['title'] ?>"
                   data-height="<?=$item['height']?>"
                   data-width="<?=$item['width']?>"
                   data-uri="<?=url($item['name'])?>"
                >

                    <?php else:?>
                    <a class="am-btn am-btn-default am-btn-success am-radius" href="<?=url($item['name'])?>">
                        <?php endif;?>
                        <span class="am-icon-plus"></span> <?= $item['title']?>
                    </a>
            </div>
        <?php endif;?>
    <?php endforeach;endif;?>
</div>
